package tds.model15.version1;


/**
 * @Company 杭州先锋电子技术股份有限公司
 * @ClassName NBAObserver
 * @Description 看nba的那位同事
 * @author tds
 * @Date 2020/1/30 16:49
 * @version 1.0.0
 */
public class NBAObserver extends Observer {

    public NBAObserver(String name, Subject sub) {
        super(name, sub);
    }

    @Override
    public void update() {
        System.out.printf("%s,%s关闭了nba直播，继续工作\n", sub.getSubjectState(), name);
    }
}
